﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace XZTZ.UMP.Public.Models.Base
{
    [Table("Base_CompanyInfo")]
    public class CompanyInfo
    {
        [Key]
        [DisplayName("单位ID")]
        public Guid guidCompanyID { get; set; }
        [DisplayName("单位类别ID")]
        public Guid guidCompanyTypeID { get; set; }
        [DisplayName("单位类别名称")]
        public virtual CompanyType CompanyType { get; set; }
        
        [DisplayName("单位名称")]
        public string strCompanyName { get; set; }
        [DisplayName("单位简称")]
        public string strShortName { get; set; }
        [DisplayName("法人代表")]
        public string strCommissary { get; set; }
        [DisplayName("联系电话")]
        public string strPhone { get; set; }
        [DisplayName("传真")]
        public string strFax { get; set; }
        [DataType(DataType.Date)]
        [DisplayName("修改时间")]
        public DateTime dtmOperateDate { get; set; }
        [DisplayName("备注")]
        public string strNote { get; set; }

        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DisplayName("索引")]
        [NotMapped]//只读
        public int intIndexNo { get; set; }
        [DisplayName("是否禁用")]
        public bool blnTabooFlag { get; set; }
    }
}
